package com.megan.design.pattern.creational.factorymethod;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author: megan
 * @Data: 2018/8/24 上午8:05
 * @Description:
 */
@Slf4j
public class Test {

    public static void main(String[] args) {
        VideoFactory videoFactoryJava = new JavaVideoFactory();
        Video video = videoFactoryJava.getVideo();
        video.produce();

        VideoFactory videoFactoryPython = new PythonVideoFactory();
        Video video1 = videoFactoryPython.getVideo();
        video1.produce();

        VideoFactory videoFactoryFe = new FeVideoFactory();
        Video video2 = videoFactoryFe.getVideo();
        video2.produce();

    }
}
